// /system/district/getProvinceList 省
// /system/district/getCitysByProId/{provinceId} 市
// /system/district/getDistrictsByCityId/{cityId} 区县
// 获取省
import {request} from "../../static/core/request";

export function getProvinceListApi() {
  return request({ url: '/system/district/getProvinceList', method: 'get' });
}
// 获取市
export function getCitysByProIdApi(provinceId) {
  return request({ url: `/system/district/getCitysByProId/${provinceId}`, method: 'get' });
}
// 获取区县
export function getDistrictsByCityIdApi(cityId) {
  return request({ url: `/system/district/getDistrictsByCityId/${cityId}`, method: 'get' });
}
// 根据地址获取坐标
export function getLngLatByAddressApi(address) {
  return request({ url: `applet/getAddressLonLat`, method: 'get', data: { address } });
}
